<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新希望快递物流信息平台2.0</title>
<link href="common/common.css" rel="stylesheet" type="text/css">
<link href="common/shtel-menu.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="common/jquery-1.3.2.js"></script>
<script type="text/javascript" src="common/shtelmenu.js"></script>
<script type="text/javascript">
	function init(){
	     document.getElementById('mainframe').style.height=document.body.clientHeight-135;
	      $("#big_div").bind("mouseleave", reFocusClickedMenu);
	      $("div[class='menu_normal']").bind("mouseenter",function(){
	                showMenuDelay($(this).attr("id"),300);
	        });
	         $("div[class='menu_normal']").bind("mouseleave",cleartimeout);
         }
  
</script>
</head>
<body style="margin: 0; padding: 0; overflow: hidden" onload="init()">
<div style="text-align:left; color:#003366;BACKGROUND:url(images/bg.jpg); background-repeat: repeat-x;  scroll right top;">
<img src="images/index_header.jpg"/>
<div style="position:absolute;right:2px;top:2px;color:yellow">
欢迎您：${HUAXIA_CURRENT_USER.userName}[ <a	href="Logout.do">退出</a> ]
</div>
<c:set var="HUAXIA_MENU_REPOSITORY"
	value='${applicationScope["net.sf.navigator.menu.MENU_REPOSITORY"]}' />
<c:set var="topmenu" value='${HUAXIA_MENU_REPOSITORY.topMenus}' />

<div id="big_div" class="menu_area" >
	<div style="width: 100%" >
		<c:forEach var="menu" items="${topmenu}">
			<c:if test="${empty  menu.roles or fn:contains(menu.roles,HUAXIA_CURRENT_USER.roleID)}">
			<c:set var="childMenus" value="${menu.menuComponents}"/>
			<c:set var="menuURL" value=""/>
			<c:if test="${empty childMenus}">
			     <c:if test="${empty menu.location}"><c:set var="menuURL">${pageContext.request.contextPath}/${childMenus.action}</c:set></c:if>
			     <c:if test="${not empty menu.location}"><c:set var="menuURL">${childMenus.location}</c:set></c:if>
		    </c:if>
			<div  class="menu_normal" style="width:${menu.width }" id="${menu.name}" >
				<img id="img_${menu.name}" class="image_abs"   src="images/stmenu2.jpg" />
				<div class="w_temp" style="width:${menu.width}" id="link_${menu.name}" onclick="openURL('${menuURL}')">${menu.title}
				</div>
			</div>
		</c:if>
		</c:forEach>
	</div>
	<div  class='ww2'>
		<c:forEach var="menu" items="${topmenu}">
			<c:if test="${empty  menu.roles or fn:contains(menu.roles,HUAXIA_CURRENT_USER.roleID)}">
			<div id="hid_${menu.name }" style="float:left;display:none">&nbsp;</div>
			<div id="sub_${menu.name}" class="menu_child">
				<c:forEach var="childMenu" items="${menu.menuComponents}">
						<c:if test="${empty  childMenu.roles or fn:contains(childMenu.roles,HUAXIA_CURRENT_USER.roleID)}">
					<c:if test="${childMenu.location==null}">
						<c:set var="menuURL" > ${pageContext.request.contextPath}${childMenu.action }</c:set>
					</c:if>
					<c:if test="${childMenu.location!=null}">
						<c:set var="menuURL" > ${ childMenu.location }</c:set>
					</c:if>
					<c:set var="submenuid">submenu_${childMenu.name}</c:set>
					<div id="${submenuid}" class="submenu" onclick="clickSubMenu('${submenuid}','${menuURL}')" onmouseover="this.className='submenu_on';" onmouseout="changSubMenuSytle('${submenuid}')">
					 ${childMenu.title}</div>
					</c:if>
				</c:forEach>
			</div>
			</c:if>
	     </c:forEach>
	</div>
</div>
<iframe name="mainframe" id="mainframe" width="100%" height="99%"
	frameborder="0" scrolling="auto" src="main.jsp" marginwidth="0"
	marginheight="0"></iframe>
</body>
</html>
